<style type="text/css">
td{
    text-align: center;    
}
</style>

<form id="pagerForm" method="post" action="index.php?c=Goodsorders&a=lists">
    <input type="hidden" name="pageNum" value="{$search.pageNum}" />
    <input type="hidden" name="keywords" value="{$search.keywords}">
    <input type="hidden" name="star" value="{$search.star}">
    <input type="hidden" name="end" value="{$search.end}">
    <input type="hidden" name="shop_name" value="{$search.shop_name}">
    <input type="hidden" name="city" value="{$search.city}">
    <input type="hidden" name="numPerPage" value="{$pages.numPerPage}" />
    <input type="hidden" name="orderField" value="{$param.orderField}" />
    <input type="hidden" name="buygroup" value="{$search.buygroup}" />
    <input type="hidden" name="categroy" value="{$search.categroy}" />
    <input type="hidden" name="zifenlei" value="{$search.zifenlei}" />
    <input type="hidden" name="activity" value="{$search.activity}" />
    <input type="hidden" name="field" value="{$search.field}" />
    <!-- <input type="hidden" name="orderField" value="{$pages.currentPage}" /> -->
</form>

<link rel="stylesheet" type="text/css" href="css/default1.css" />
<!-- Edit Below -->
<script type="text/javascript" src="./js/jquery.wheelmenu.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href='css/elusive-webfont.css' rel='stylesheet' type='text/css'>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="index.php?c=Goodsorders&a=lists" method="post">
        <div class="searchBar">
            <div class="subBar">
                <ul>
                    <li>
                    	<div class="buttonActive">
    	                    <div class="buttonContent">
    	                    	<button type="submit">刷新页面</button>
                                <li><a class="button" href="index.php?c=Goodsorders&a=search" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
    	                    </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>

<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li>
                <a class="add" href="index.php?c=Goodsorders&a=index&state=0" target="navTab" width="800" height="600">
                    <span>待付款</span>
                </a>
            </li>
            <li>
                <a class="add" href="index.php?c=Goodsorders&a=index&state=8" target="navTab" width="800" height="600">
                    <span>待发货</span>
                </a>
            </li>
            <li>
                <a class="add" href="index.php?c=Goodsorders&a=index&state=2" target="navTab" width="800" height="600">
                    <span>待收货</span>
                </a>
            </li>
            <li>
                <a class="add" href="index.php?c=Goodsorders&a=index&state=3" target="navTab" width="800" height="600">
                    <span>待评价</span>
                </a>
            </li>
            <li>
                <a class="add" href="index.php?c=Goodsorders&a=index&state=4" target="navTab" width="800" height="600">
                    <span>退款售后</span>
                </a>
            </li>
        </ul>
    </div>

    <div id="w_list_print">
    <!-- <form id="tables" action="index.php?c=Present&a=presentCheck" method="post" accept-charset="utf-8"> -->
        <table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
            <thead>
            <tr>
                <th align="center" width="10" ><input class="checkedAll" type="checkbox" value="{$goods.goodsid}"/></th>
                <th align="center" width="100" orderField="id" >订单号</th>
                <th align="center" width="100">商品图片</th>
                <th align="center" width="100" orderField="account_money">订单状态</th>
                <th align="center" width="100">商品名称</th>
                <th align="center" width="100">商品规格</th>
                <th align="center" width="100">商品单价</th>
                <th align="center" width="100">结算金额</th>
                <th align="center" width="100">商品数量</th>
                <th align="center" width="100">订单地址</th>
                <th align="center" width="100">下单时间</th>
                <!-- <th align="center" width="100">操作</th> -->
            </tr>
            </thead>
 
            <tbody id="Fares">
                <foreach name="list" item="list">
                    <tr target="sid_user" rel="{$list.ordersid}">
                        <td><input type="checkbox" name="review[]" value="{$goods.goodsid}"></td>
                        <td>{$list.numbers}</td>
                        <td><img src="http://www.ewangpf.com/{$list.images}" style="width: 80px; height: 80px;"></td>

                        <if condition="$list['state'] eq 0"><td>待付款</td>
                        <elseif condition="$list['state'] eq 1"/><td>待商家接单</td>
                        <elseif condition="$list['state'] eq 2"/><td>待收货</td>
                        <elseif condition="$list['state'] eq 3"/><td>待评价</td>
                        <elseif condition="$list['state'] eq 4"/><td>退款售后</td>
                        <elseif condition="$list['state'] eq 5"/><td>交易成功</td>
                        <elseif condition="$list['state'] eq 6"/><td>交易失败</td>
                        <elseif condition="$list['state'] eq 7"/><td>货到付款</td>
                        <elseif condition="$list['state'] eq 8"/><td>待发货</td>
                        <elseif condition="$list['state'] eq 9"/><td>商家拒绝接单</td>
                        <else /><td>未知状态</td>
                        </if>

                        <td>{$list.goodsname}</td>
                        <td>{$list.fTitle}--{$list.sTitle}</td>
                        <td>{$list.price}</td>
                        <td>{$list.blance_price}</td>
                        <td>{$list.number}</td>
                        <td>{$list.address}</td>
                        <td>{$list.xia_dan_datetime}</td>
                    </tr>  
                </foreach>

            </tbody>
        </table>
        <input type="hidden" name='checking' />
    <!-- </form> -->
    </div>

    <div class="panelBar" >
        <div class="pages">
            <span>显示</span>
            <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="{$pages.numPerPage}">{$pages.numPerPage}</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共{$pages.total}条</span>
        </div>
        <!-- totalCount商品总数  pageNumShown页码  currentPage当前页码  numPerPage当前页条数-->
        <div class="pagination" targetType="navTab" totalCount="{$pages.total}" numPerPage="{$pages.numPerPage}" pageNumShown="10" currentPage="{$pages.currentPage}"></div>

    </div>

</div>
